import matplotlib
matplotlib.use('TkAgg')
import  matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
sns.set_style('darkgrid')

# 中文乱码
# plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['font.sans-serif'] = ['Heiti TC']
df = pd.read_csv('./data/iris.csv')
# p1=sns.kdeplot(df['sepal_width'],shade=True,color='r')
# p1=sns.kdeplot(df['sepal_length'],shade=True,color='b')
# 边界核密度图
sns.jointplot(x=df['sepal_length'],y=df['sepal_width'],kind='kde',space=0)
plt.show()
